package com.pronosticnews.server.services;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.pronosticnews.client.services.ParticipationService;
import com.pronosticnews.server.domain.dao.ParticipationDao;
import com.pronosticnews.server.domain.model.Participation;
import com.pronosticnews.shared.model.ParticipationDto;

import fr.ysa.persistence.IDao;
import fr.ysa.services.ImplService;

@Service("participationService")
@Transactional
public class ParticipationServiceImpl extends ImplService<Participation, ParticipationDto> implements
		ParticipationService {

	@Autowired
	ParticipationDao participationDao;

	@Override
	public IDao<Participation> getDao() {
		return participationDao;
	}

	@Override
	public Class<Participation> getEntityClass() {
		return Participation.class;
	}

	@Override
	public Class<ParticipationDto> getEntityDtoClass() {
		return ParticipationDto.class;
	}

}
